﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddContract.ascx.cs"
    Inherits="Presentation.UserControl.AddContract" %>
<table border="0" cellpadding="0" cellspacing="0" id="content-table" width="100%">
    <tr>
        <th rowspan="3" class="sized">
            <img src="/Content/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" />
        </th>
        <th class="topleft">
        </th>
        <td id="tbl-border-top">
        </td>
        <th class="topright">
        </th>
        <th rowspan="3" class="sized">
            <img src="/Content/images/shared/side_shadowright.jpg" width="20" height="300" alt="" />
        </th>
    </tr>
    <tr>
        <td id="tbl-border-left">
        </td>
        <td>
            <!--  start content-table-inner -->
            <div id="content-table-inner">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr valign="top">
                        <td>
                            <!-- start id-form -->
                            <table width="100%" cellspacing="0" cellpadding="0" border="0" id="id-form">
                                <tr>
                                    <td colspan="2">
                                        <div class="legend-text">
                                            Contract information</div>
                                        <div class="hrStyle">
                                            <hr />
                                        </div>
                                    </td>
                                    <td colspan="2">
                                        <div class="legend-text">
                                            Contractor information</div>
                                        <div class="hrStyle">
                                            <hr />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th style="width: 10%">
                                        Start Date :
                                    </th>
                                    <td style="width: 40%">
                                        <asp:TextBox ID="StartDateTextBox" title="<b>(MM/dd/yyyy)</b>" CssClass="inp-datetime"
                                            runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="StartDateRequiredFieldValidator" runat="server" ControlToValidate="StartDateTextBox"
                                            ErrorMessage="Start Date is required" CssClass="validation-msg" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="StartDateRegularExpressionValidator" runat="server"
                                            ControlToValidate="StartDateTextBox" ErrorMessage="Start Date is invalid" ValidationExpression="^(((0?[1-9]|1[012])/(0?[1-9]|1\d|2[0-8])|(0?[13456789]|1[012])/(29|30)|(0?[13578]|1[02])/31)/(19|[2-9]\d)\d{2}|0?2/29/((19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$"
                                            CssClass="validation-msg" Display="Dynamic"></asp:RegularExpressionValidator>
                                    </td>
                                    <th style="width: 10%">
                                        First name:
                                    </th>
                                    <td style="width: 40%">
                                        <asp:TextBox ID="FirstNameTextBox" CssClass="inp-form" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="FirstNameRequiredFieldValidator" runat="server" ControlToValidate="FirstNameTextBox"
                                            ErrorMessage="Firstname is required" CssClass="validation-msg" Display="Dynamic"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        End Date :
                                    </th>
                                    <td>
                                        <asp:TextBox ID="EndDateTextBox" title="<b>(MM/dd/yyyy)</b>" CssClass="inp-datetime"
                                            runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="EndDateRequiredFieldValidator" runat="server" ControlToValidate="EndDateTextBox"
                                            ErrorMessage="End Date is required" CssClass="validation-msg" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="EndDateCompareValidator" runat="server" CssClass="validation-msg"
                                            Display="Dynamic" ControlToCompare="StartDateTextBox" ControlToValidate="EndDateTextBox"
                                            ErrorMessage="Start Date &gt; End Date" Operator="GreaterThan" Type="Date"></asp:CompareValidator>
                                    </td>
                                    <th>
                                        Last name:
                                    </th>
                                    <td valign="top">
                                        <asp:TextBox ID="LastNameTextBox" runat="server" CssClass="inp-form"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="LastNameRequiredFieldValidator" runat="server" ControlToValidate="LastNameTextBox"
                                            ErrorMessage="Lastname is required" CssClass="validation-msg" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="LastNameRegularExpressionValidator" runat="server"
                                            CssClass="validation-msg" ErrorMessage="Lastname must be a word" ControlToValidate="LastNameTextBox"
                                            ValidationExpression="^((?!\s).)*$" Display="Dynamic"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        Contract Type :
                                    </th>
                                    <td>
                                        <asp:DropDownList ID="ContractTypeDropDownList" runat="server" CssClass="styledselect_form_1">
                                        </asp:DropDownList>
                                    </td>
                                    <th>
                                        Birthdate:
                                    </th>
                                    <td valign="top">
                                        <asp:TextBox ID="BirthDateTextBox" title="<b>(MM/dd/yyyy)</b>" CssClass="inp-datetime"
                                            runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="BirthDateRequiredFieldValidator" runat="server" ControlToValidate="BirthDateTextBox"
                                            ErrorMessage="Birthdate is required" CssClass="validation-msg" 
                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="BirthDateRegularExpressionValidator" runat="server"
                                            ControlToValidate="BirthDateTextBox" ErrorMessage="Birthdate is invalid" ValidationExpression="^(((0?[1-9]|1[012])/(0?[1-9]|1\d|2[0-8])|(0?[13456789]|1[012])/(29|30)|(0?[13578]|1[02])/31)/(19|[2-9]\d)\d{2}|0?2/29/((19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$"
                                            CssClass="validation-msg" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:CompareValidator ID="BirthDateCompareValidator" runat="server" ControlToCompare="StartDateTextBox"
                                            ControlToValidate="BirthDateTextBox" ErrorMessage="Birthdate  &lt; Start Date"
                                            Operator="LessThan" Type="Date" ValueToCompare="DateTime" CssClass="validation-msg"
                                            Display="Dynamic"></asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        Client :
                                    </th>
                                    <td>
                                        <asp:DropDownList ID="ClientDropDownList" runat="server" CssClass="styledselect_form_1">
                                        </asp:DropDownList>
                                    </td>
                                    <th>
                                        Gender:
                                    </th>
                                    <td valign="top">
                                        <asp:RadioButtonList ID="GenderRadioButtonList" runat="server" RepeatDirection="Horizontal">
                                            <asp:ListItem>Male</asp:ListItem>
                                            <asp:ListItem>Female</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        Consultant :&nbsp;
                                    </th>
                                    <td>
                                        <asp:DropDownList ID="ConsultantDropDownList" runat="server" CssClass="styledselect_form_1">
                                        </asp:DropDownList>
                                    </td>
                                    <th>
                                        Telephone 1:
                                    </th>
                                    <td>
                                        <asp:TextBox ID="Telephone1TextBox" title="<b>(XXXX-XXX-XXXX)</b>" runat="server"
                                            CssClass="inp-form"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="Telephone1RegularExpressionValidator" runat="server"
                                            ControlToValidate="Telephone1TextBox" ErrorMessage="Telephone 1 is invalid" ValidationExpression="\d{4}\-\d{3}\-\d{3,4}"
                                            CssClass="validation-msg" Display="Dynamic"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">
                                        Content :
                                    </th>
                                    <td rowspan="3">
                                        <asp:TextBox ID="ContentTextBox" runat="server" TextMode="MultiLine" CssClass="form-textarea-small"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="ContentRequiredFieldValidator" runat="server" ControlToValidate="ContentTextBox"
                                            ErrorMessage="Content is required" CssClass="validation-msg" Display="Dynamic"></asp:RequiredFieldValidator>
                                        &nbsp; &nbsp;
                                    </td>
                                    <th>
                                        Telephone 2:
                                    </th>
                                    <td>
                                        <asp:TextBox ID="Telephone2TextBox" title="<b>(XXXX-XXX-XXXX)</b>" runat="server"
                                            CssClass="inp-form"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="Telephone2RegularExpressionValidator" runat="server"
                                            ControlToValidate="Telephone2TextBox" ErrorMessage="Telephone 2 is invalid"
                                            ValidationExpression="\d{4}\-\d{3}\-\d{3,4}" CssClass="validation-msg" Display="Dynamic"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        &nbsp;
                                    </th>
                                    <th>
                                        DayInWeek:
                                    </th>
                                    <td>
                                        <asp:DropDownList ID="DayInWeekDropDownList" runat="server" CssClass="styledselect_form_1">
                                            <asp:ListItem Value="2">Monday</asp:ListItem>
                                            <asp:ListItem Value="3">Tuesday</asp:ListItem>
                                            <asp:ListItem Value="4">Wednesday</asp:ListItem>
                                            <asp:ListItem Value="5">Thursday</asp:ListItem>
                                            <asp:ListItem Value="6">Friday</asp:ListItem>
                                            <asp:ListItem Value="7">Saturday</asp:ListItem>
                                            <asp:ListItem Value="8">Sunday</asp:ListItem>
                                            <asp:ListItem Value="0">Send Immediately</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        &nbsp;
                                    </th>
                                    <th>
                                        Branch
                                    </th>
                                    <td>
                                        <asp:TextBox ID="BranchTextBox" runat="server" CssClass="inp-form"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        &nbsp;
                                    </th>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <th>
                                        Sort code:
                                    </th>
                                    <td>
                                        <asp:TextBox ID="SortCodeTextBox" runat="server" CssClass="inp-form"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <div class="hrStyle">
                                            <hr />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" style="text-align: left">
                                        <asp:Button ID="AddButton" CssClass="form-add" runat="server" />
                                        <asp:Button ID="ResetButton" runat="server" CssClass="form-reset" CausesValidation="False" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <div class="clear">
                </div>
            </div>
            <!--  end content-table-inner  -->
        </td>
        <td id="tbl-border-right">
        </td>
    </tr>
    <tr>
        <th class="sized bottomleft">
        </th>
        <td id="tbl-border-bottom">
            &nbsp;
        </td>
        <th class="sized bottomright">
        </th>
    </tr>
</table>
<div class="clear">
    &nbsp;</div>
